home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_1838 / frame_5 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  299 b   |  19 lines

  1. function scoreplus2()
  2. {
  3.    if(tbn < tb)
  4.    {
  5.       tbn += 10;
  6.    }
  7.    if(tbn >= tb)
  8.    {
  9.       tbn = tb;
  10.       clearInterval(intervalID2);
  11.       _root.lc.play();
  12.    }
  13. }
  14. stop();
  15. tbn = 0;
  16. tb = _parent.mainGame.gameTime * 10;
  17. var intervalID2;
  18. intervalID2 = setInterval(scoreplus2,8);
  19.